/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_payNotifyReqLog")
//@NamedQueries({@NamedQuery(name = "TpayNotifyReqLog.findAll", query = "SELECT t FROM TpayNotifyReqLog t"), @NamedQuery(name = "TpayNotifyReqLog.findById", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.id = :id"), @NamedQuery(name = "TpayNotifyReqLog.findByServiceCode", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TpayNotifyReqLog.findByFailedReason", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.failedReason = :failedReason"), @NamedQuery(name = "TpayNotifyReqLog.findByOrderCode", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.orderCode = :orderCode"), @NamedQuery(name = "TpayNotifyReqLog.findByPayStatus", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.payStatus = :payStatus"), @NamedQuery(name = "TpayNotifyReqLog.findByPayChannel", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.payChannel = :payChannel"), @NamedQuery(name = "TpayNotifyReqLog.findByProductInfo", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.productInfo = :productInfo"), @NamedQuery(name = "TpayNotifyReqLog.findByPayTime", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.payTime = :payTime"), @NamedQuery(name = "TpayNotifyReqLog.findByCardNum", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.cardNum = :cardNum"), @NamedQuery(name = "TpayNotifyReqLog.findByReqtime", query = "SELECT t FROM TpayNotifyReqLog t WHERE t.reqtime = :reqtime")})
public class TpayNotifyReqLog implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "serviceCode")
    private String serviceCode;
    @Column(name = "failedReason")
    private String failedReason;
    @Column(name = "orderCode")
    private String orderCode;
    @Column(name = "payStatus")
    private Integer payStatus;
    @Column(name = "payChannel")
    private Integer payChannel;
    @Column(name = "productInfo")
    private String productInfo;
    @Column(name = "payTime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date payTime;
    @Column(name = "cardNum")
    private String cardNum;
    @Basic(optional = false)
    @Column(name = "reqtime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date reqtime;

    public TpayNotifyReqLog() {
    }

    public TpayNotifyReqLog(Integer id) {
        this.id = id;
    }

    public TpayNotifyReqLog(Integer id, Date reqtime) {
        this.id = id;
        this.reqtime = reqtime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getFailedReason() {
        return failedReason;
    }

    public void setFailedReason(String failedReason) {
        this.failedReason = failedReason;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public String getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(String productInfo) {
        this.productInfo = productInfo;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public Date getReqtime() {
        return reqtime;
    }

    public void setReqtime(Date reqtime) {
        this.reqtime = reqtime;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TpayNotifyReqLog)) {
            return false;
        }
        TpayNotifyReqLog other = (TpayNotifyReqLog) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TpayNotifyReqLog[id=" + id + "]";
    }

}
